<?php
/* @var $this ConfigController */
/* @var $model Config */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'config-form',
	'enableAjaxValidation'=>true,
        'htmlOptions' => array('enctype'=>'multipart/form-data')
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'sitename'); ?>
		<?php echo $form->textField($model,'sitename',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'sitename'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'facebook'); ?>
		<?php echo $form->textField($model,'facebook',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'facebook'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'keywords'); ?>
		<?php echo $form->textArea($model,'keywords',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'keywords'); ?>
                <p class="hint">
                    Keyword delimiter must be a comma (,)
		</p>
                
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
                
                
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'youtube'); ?>
		<?php echo $form->textField($model,'youtube',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'youtube'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bannerfile'); ?>
		<?php echo $form->fileField($model,'bannerfile',array('size'=>60,'maxlength'=>255));?>
		<?php echo $form->error($model,'bannerfile'); ?>
                <p class="hint">
                    This image will display when browse on mobile.<br/>
                    Recommended image width sizes 350 pixel x 106 pixel. jpg, png, gif are allowed. 
		</p>
	</div>
        <div class="row">
                <?php echo $form->labelEx($model,'logofile'); ?>
		<?php echo $form->fileField($model,'logofile',array('size'=>60,'maxlength'=>255));?>
		<?php echo $form->error($model,'logofile'); ?>
                <p class="hint">
                    jpg, png, gif are allowed. 
		</p>
        </div>
                

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->